package com.prs.crm.domain.oa;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * OA图片新闻收藏
 * @author zhoupeng 2012-3-27
 *
 */
@Entity
@Table(name="oa_picturenews_collect")
public class PictureNewsCollect extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@OneToOne
	private PictureNews pictureNews;
	
	@OneToOne
	private PictureNewsReceive pictureNewsReceive;
	@ManyToOne
	private PictureNewsCollectType type;

	public PictureNewsReceive getPictureNewsReceive() {
		return pictureNewsReceive;
	}

	public void setPictureNewsReceive(PictureNewsReceive pictureNewsReceive) {
		this.pictureNewsReceive = pictureNewsReceive;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public PictureNews getPictureNews() {
		return pictureNews;
	}

	public void setPictureNews(PictureNews pictureNews) {
		this.pictureNews = pictureNews;
	}

	public PictureNewsCollectType getType() {
		return type;
	}

	public void setType(PictureNewsCollectType type) {
		this.type = type;
	}
	
}
